import 'package:flutter/material.dart';

class GoodsDetailsTabbar extends StatefulWidget {
  final TabController tabController;
  const GoodsDetailsTabbar({super.key, required this.tabController});

  @override
  State<GoodsDetailsTabbar> createState() => _GoodsDetailsTabbarState();
}

class _GoodsDetailsTabbarState extends State<GoodsDetailsTabbar> {
  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      height: 50,
      decoration: const BoxDecoration(color: Colors.white),
      child: TabBar(
        controller: widget.tabController,
        isScrollable: false,
        unselectedLabelColor: const Color.fromARGB(255, 97, 97, 97),
        indicator: const BoxDecoration(),
        labelColor: const Color(0xFF00CE8A),
        tabs: const <Widget>[
          Text(
            "同類商品",
            style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
          ),
          Text(
            "24小時熱銷",
            style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
          ),
        ],
      ),
    );
  }
}
